public class demo61 {
    class Solution {
        public int percentageLetter(String s, char letter) {
            int count = 0;
            char[] c = s.toCharArray();
            for(char c1 :c)
            {
                if(c1 == letter)
                    count++;
            }
            return count*100/s.length();
        }
    }
}
